<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://www.rapid-framework.org.cn/rapid" prefix="rapid"%>
<rapid:override name="frame-content">
	<blockquote class="layui-elem-quote">
		<span class="layui-breadcrumb" lay-separator="/"> <a
			href="user/index">首页</a> <a href="comment">评论列表</a> <a><cite>回复评论</cite></a>
		</span>
	</blockquote>

	<form class="layui-form" method="post" id="myForm"
		action="comment/add">
		<input type="hidden" name="commentPid" value="${comment.commentId }">
		<input type="hidden" name="commentPname"
			value="${comment.commentAuthorName }"> <input type="hidden"
			name="commentArticleId" value="${sessionScope.session_user.userId}">
		<input type="hidden" name="commentRole"
			value="${comment.commentRole }">

		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">原内容</label>
			<div class="layui-input-block">
				<textarea class="layui-textarea" disabled>${comment.commentContent }</textarea>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">我的昵称 </label>
			<div class="layui-input-block">
				<input type="text" name="commentAuthorName"
					value="${sessionScope.session_user.userNickname}"
					class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">我的邮箱 </label>
			<div class="layui-input-block">
				<input type="text" name="commentAuthorEmail"
					value="${sessionScope.session_user.userEmail}" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">我的网址 </label>
			<div class="layui-input-block">
				<input type="text" name="commentAuthorUrl"
					value="${sessionScope.session_user.userUrl}" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">我的回复</label>
			<div class="layui-input-block">
				<textarea name="commentContent" class="layui-textarea"></textarea>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="demo1">回复</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>

	</form>
</rapid:override>
<rapid:override name="frame-footer-script">
	<style>
	/*覆盖 layui*/
	.layui-btn {
		margin: 2px 0 !important;
	}
	</style>
</rapid:override>
<%@ include file="../framework.jsp"%>